<?php
/**
 * Created by PhpStorm.
 * User: zhangrxiang
 * Date: 2017/6/19
 * Time: 17:33
 * Project name: PHPTEST
 * File name: 1.php
 * @copyright Copyright (c) 2016 ZRX Software LLC
 * @license https://github.com/zhangrxiang
 * @since 1.0.0
 */

/************************************** 测试 ***********************************
 * $ftp = new class_ftp('192.168.100.143',21,'user','pwd'); // 打开FTP连接
 * //$ftp->up_file('aa.txt','a/b/c/cc.txt'); // 上传文件
 * //$ftp->move_file('a/b/c/cc.txt','a/cc.txt'); // 移动文件
 * //$ftp->copy_file('a/cc.txt','a/b/dd.txt'); // 复制文件
 * //$ftp->del_file('a/b/dd.txt'); // 删除文件
 * $ftp->close(); // 关闭FTP连接
 ******************************************************************************/

$method = $_SERVER['REQUEST_METHOD'];
if ($method === "POST") {
    include "FTP.php";
    $ftp = new FTP();
    $ftp->up_file("","");
    var_dump($_FILES);
} else {
    echo "out";
}
